interface TestStore {
  num: number
}

export const useTestStore = defineStore({
  id: 'test',
  state: (): TestStore => ({
    num: 0,
  }),
  actions: {
    changeNum() {
      this.num++
    },
  },

  persist: {
    enabled: true,
    strategies: [
      {
        key: 'wch-test',
        storage: localStorage,
      },
    ],
  },
})
